<?php


/**
 * @author wei.deng
 * @version 1.0
 * @created 05-八月-2011 11:04:55
 */
class InterpreterContext
{

	private $expressionstore = array();

	/**
	 * 
	 * @param exp
	 * @param value
	 */
	public function replace(Expression $exp, $value)
	{
		$this->expressionstore[$exp->getKey()] = $value;
	}

	/**
	 * 
	 * @param exp
	 */
	public function lookup(Expression $exp)
	{
		return $this->expressionstore[$exp->getKey()];
	}

}
?>